<?php


namespace Cumulon\Service\User;


use Yundong\Service\Kernel\BaseClient;

class Client extends BaseClient
{
    /**
     * 获取用户信息
     * @return mixed
     */
    public function getUser(){
        return  $this->client->get('/api/user/info');
    }

    /**
     * 用户信息同步
     */
    public function userRsync(){
        return  $this->client->get('/api/user/rsync');
    }

    /**
     *  用户权限菜单
     * @return mixed
     */
    public function userPrivilegeMenu(){
        return  $this->client->get('/api/user/privilege',['app_sign' => $this->app['config']->get('app_sign'),'type' => 'menu']);
    }
    /**
     *  用户权限
     * @return mixed
     */
    public function userPrivilege(){
        return  $this->client->get('/api/user/privilege',['app_sign' => $this->app['config']->get('app_sign')]);
    }
}